<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$intLTypeID = (int)$_data["LTypeID"];
if($intLTypeID == 0)$intLTypeID = 1;

$fp = @file($strTemplatePath."Search.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);


$strLTypeOption = "";
foreach($_arrLType as $intLyID => $strLyName){
	$strSelected = $intLyID == $intLTypeID?" selected":"";
	$strLTypeOption .= "<option value='".$intLyID."'".$strSelected.">".$strLyName."</option>";
}
$fp = str_replace("{LTypeOptions}", $strLTypeOption, $fp);


$strBetOption = "";
$strSQL =  "select ID as BID, Type_Value_".$_intLang." as Type_Value from `bet_BetType` where `isGambleType` = 1 and `LType` = ".$intLTypeID." order by ID";
if($subRS = @PMA_mysql_query($strSQL, $$_Conn)){
	if(PMA_mysql_num_rows($subRS) > 0){
		while($subRows = PMA_mysql_fetch_object($subRS)){
			$strBetOption .= "<option value='".$subRows -> BID."'>".$subRows -> Type_Value."</option>";
		}
	}
}
$fp = str_replace("{BetTypeOptions}", $strBetOption, $fp);


while(list($k, $v) = each($_strSelectGLine)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

//輸出
WebOutputHTML($fp, 1);
?>